﻿<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
     <title>Your Game Name</title>
     <meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;"/>
    <style type="text/css" media="screen">@import "m/iui.css";</style>
<script type="application/x-javascript" src="m/iui.js"></script>
</head>
<body>
    <div class="toolbar">
        <h1 id="pageTitle">Your Game Name</h1>
        <a id="backButton" class="button" href="#"></a>
        <a class="button" target="_self" href="default.aspx">Home</a>
    </div>
    
    <ul id="home" title="Your Game" selected="true">
        <li><!--This is a good place to put a graphics bar or something --></li>        
        <li runat="server" id="MyGamesLink"><a href="#ContinueAGame"><div>My Games<div runat=server id=ActiveGameTag style="background-color:Red;color:White;float:right;Padding:2px 2px 2px 2px;"></div></div></a></li>
        <li runat="server" id="FindMatchLink"><a href="#FindAMatch"><div>Find A Match<div runat=server id=ActiveChallengesTag style="background-color:Red;color:White;float:right;Padding:2px 2px 2px 2px;"></div></div></a></li>        
        <li runat="server" id="LadderLink"><a href="Ladder.aspx?LadderStartRank=1&ThisTeamID=<%= (MyGames!=null ? MyGames.ThisTeamID.ToString() : "")%>"><div>The Ladder</div></a></li>        
        <li runat="server" id="SignUpLink"><a href="<% =ConfigurationSettings.AppSettings["TLWebURL"] + "SignUp.aspx?bStartPage=true&AppGUID=" + ConfigurationSettings.AppSettings["AppGuid"]%>&SuccessRedirect=<%= Server.UrlEncode("http://www.yourgame.com") %>" target=_self >Create an Account<asp:Label runat="server" ID="lblStartHere" Text="<-Start Here"></asp:Label></a></li>
        <li><a href="#Settings">Settings<asp:Label runat="server" ID="lblThenHere" Text="<-Then Enter Info"></asp:Label></a></li>
        <li><a href="#Advertise">Advertise</a></li>
        <li><a href="#PlayAdFree">Play Ad Free</a></li>
        <li><a href="#API">The API</a></li>
        <li><a href="#ContactUs">Contact Us</a></li>
        <li><!-- A short video to help users know how to sign up would be helpful.  Example: <a href="http://www.youtube.com/watch?v=_6O932MeVm8" target=_blank>Sign up Help (YouTube)</a>--></li>
    </ul>
    
    <ul id="ContinueAGame" title="Games">
        <!--li><div style="float:left;text-align:center;color:Black;font-size:larger;width:78px;">&#x2660</div><div style="float:left;text-align:center;color:Green;font-size:larger;width:78px;">&#x2663</div><div style="float:left;text-align:center;color:blue;font-size:larger;width:78px;">&#x2666</div><div style="float:left;text-align:center;color:red;font-size:larger;width:78px;">&#x2665</div>&nbsp;</li-->
        <li><a href="#MyGames"><div>Your Turn<div runat=server id=ActiveGameTag2 style="background-color:Red;color:White;float:right;Padding:2px 2px 2px 2px;"></div></div></a></li>
        <li><a href="#WaitingGames">Waiting...</a></li>        
        <li><a href="#Results">Results</a></li>        
        <li><a href="<% =ConfigurationSettings.AppSettings["TLWebURL"] %>feed/MyTurnsFeed.aspx?TeamID=<%= (MyGames!=null ? MyGames.ThisTeamID.ToString() : "")%>">Track Your Turns RSS<img src="images/icon_rss.gif" /></a></li>        
    </ul>

    <ul id="Settings" title="Settings">
        <li><a href="#TLSettingsForm">TouchLeague Credentials</a></li>        
        <li runat=server id="TeamProfileLink"><a href="<% =ConfigurationSettings.AppSettings["TLWebURL"] %>TeamProfile.aspx?bStartPage=true&TeamID=<%= (MyGames!=null ? MyGames.ThisTeamID.ToString(): "") %>" target="_self">Team Settings</a></li>     
    </ul>
    
    <form id="TLSettingsForm" method="post" class="panel" action="SettingsProcess.aspx">
        <h2>Settings:</h2>
        <fieldset>           
            Please enter your TouchLeague.com credentials:
             <div class='row'><label>UserName:</label>
            <input type="text" name="Username" value="<%=CookieUserName %>"/></div>
             <div class='row'><label>Password:</label>
            <input type="password" name="Password"/></div>
        </fieldset>
        <fieldset>
            <input class="button blueButton" type="submit" value='Save'/>
            </fieldset>
            If you do not yet have a TouchLeague.com account, <a target='_self' href="<% =ConfigurationSettings.AppSettings["TLWebURL"] + "SignUp.aspx?bStartPage=true&AppGUID=" + ConfigurationSettings.AppSettings["AppGuid"]%>&SuccessRedirect=<%= Server.UrlEncode("http://www.yourgameurl.com") %>">click here to create one.</a><br /><br />
            <a href="SettingsProcess.aspx?Method=ForgetMe">Forget Me</a><br />
            <a href="http://www.touchleague.com/RecoverPassword.aspx?bStartPage=true">Recover Password</a><br />
        
    </form>
    
    <form id="ChallengeAFriend" method="post" class="panel" action="ChallengeFriend.aspx" >
        <h2>Team ID:</h2>
        <fieldset>
            <div class='row'><label>Friend's Email:</label>
            <input type="text" name="FriendEmail" value=""/>   </div>            
            <div class='row'><label>Your Name:</label>
            <input type="text" name="YourName" value=""/>   </div>
              <div class='row'>        
            <label>Ladder Game?:</label>
            <input type="checkbox" class='toggle' name="bChallenge" checked/></div>   
         </fieldset>
         <fieldset>         
            <input class='button blueButton' type='submit' value='Submit'/> 
        </fieldset>
    </form>

    
    
    <ul id="FindAMatch" title="Game Requests">
        <li><a href="#RankChallenge">New: By Rank</a></li>
        <li><a href="#ByPlayerID">New: By Team ID</a></li>
         <li ><a href="Ladder.aspx" runat=server id="ViewLadderLink">New: Browse Ladder</a></li>  
         <li ><a href="#CurrentRequests"><div>Existing Requests<div runat=server id=ActiveRequestsTag style="background-color:Blue;color:White;float:right;Padding:2px 2px 2px 2px;"></div></div></a></li>          
         <li ><a href="#MyChallenges"><div>New: You've been Challenged<div runat=server id=ActiveChallengesTag2 style="background-color:Red;color:White;float:right;Padding:2px 2px 2px 2px;"></div></div></a></li>          
         <li><a href="#ChallengeAFriend">Challenge A Friend</a></li>
    </ul>
    
    <form id="ByPlayerID" method="post" class="panel" action="ChallengeProcess.aspx">
        <h2>Team ID:</h2>
        <fieldset>
                        <div class='row'><label>Team ID:</label>
            <input type="text" name="TargetTeamID" value=""/>   </div>
              <div class='row'>        
            <label>Ladder Game?:</label>
            <input type="checkbox"  class='toggle' name="bChallenge" checked/></div>
            </fieldset>
            <fieldset>
            <input class='button blueButton' type='submit' value='Submit'/> 
            
        </fieldset>
    </form>
    
    <form id="RankChallenge" method="post" class="panel" action="ChallengeProcess.aspx">
        <h2>Rank Request:</h2>
            Leave the fields blank for to play anyone.
        <fieldset>
            <div class='row'><label>Min Rank:</label>
            <input type="text" name="MinRank" value=""/>   </div>            
            <div class='row'><label>Max Rank:</label>
            <input type="text" name="MaxRank" value=""/>   </div>
              <div class='row'>        
            <label>Ladder Game?:</label>
            <input type="checkbox" class='toggle' name="bChallenge" checked/></div>
            </fieldset>
            <fieldset>
            <input class='button blueButton' type='submit' value='Submit'/> 
            
        </fieldset>
    </form>
    

    
    <ul id="MyChallenges" title="Challenges">
        <asp:PlaceHolder runat="server" ID="pnActiveChallenges">
        </asp:PlaceHolder>
    </ul>
    
    <ul id="MyGames" title="Games">
        <asp:PlaceHolder runat="server" ID="pnGames">
        </asp:PlaceHolder>
    </ul>
    
    <ul id="WaitingGames" title="Waiting Games">
        <asp:PlaceHolder runat="server" ID="pnWaitingGames">
        </asp:PlaceHolder>
    </ul>
    
    <ul id="Results" title="Results">
        <asp:PlaceHolder runat="server" ID="pnResults">
        </asp:PlaceHolder>
    </ul>
    
    <ul id="CurrentRequests" title="Requests">
        <asp:PlaceHolder runat="server" ID="pnRequests">
        </asp:PlaceHolder>        
    </ul>
    
    <asp:PlaceHolder runat="server" ID="RequestDeleteForms">
    </asp:PlaceHolder>
    
     <form id="ContactUs" method="POST" class="panel" action="Contact.aspx">
        <h2>Message Details:</h2>
        <fieldset>                       
             <div class='row'><label>Email:</label>
            <input type="text" name="Email" value=""/></div>
             <div class='row'><label>Subject:</label>
            <input type="text" name="Subject" value=""/></div>
             <div class='row'><label>Message:</label><br /><br />
            <textarea type='text'   id="txMessage" name="txMessage" cols="40" rows="5"></textarea></div>
            </fieldset>
            <fieldset>
            <input class="button blueButton" type="submit" value='Send'/>
            </fieldset>        
    </form>
    <ul id="PlayAdFree" title="Play Ad Free">
       <li>Coming Soon!!!<br /><br />
       TouchLeague.com will soon let you buy your way out of seeing our ads before each turn.  We split this revenue with the game creator.  It will be a great way to streamline your game experience and support the game developers.
       </li>
    </ul>
    <ul id="Advertise" title="Advertise">
       <li>TouchLeague.com offers Advertisers a unique audience.  Our users are mobile application users who are engaged with technology.  Please contact us if you are interested in sponsoring a game.</li>
       <li><a href="#ContactUs">Contact Us</a></li>
    </ul>
    <ul id="API" title="API">
       <li>TouchLeague.com offers a Competition API to those who would like to make competitive, social, mobile based games.  We have a number of licensing  plans including an ad supported  model for those with no start up cash.  Contact us if you would like more information.<br /><br />
       Current Feature:<br /><br />
       <u>Turn based state management</u> - You can build a game on our API with no database required.  Our API can keep track of your game state. Hold'em Ladder is a example of this type of game.<br /><br />
       <u>Ladder Management</u> - We let you configure how your ladder works and then manage the moving of players along the ladder.<br /><br />
       <u>Player Invitation</u> - We provide a means of users inviting their friends to join in the game so that your user base can grow organically.<br /><br />
       <u>Revenue Generation</u> - TouchLeauge provide a way for you to make money off of your game by selling ads that users see before each turn.  Adless plans are available as well.<br /><br />
       More features are coming soon.  Subscribe to our blog rss to stay informed.
       </li>
       <li><a href="http://www.touchleague.com/" target=_self >Contact Us</a></li>
    </ul>
    

    <form id="form1" runat="server">
   
    </form>
    
   
</body>
</html>
